Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2e protocol ricardo #1826

Merged
merged 4 commits into from
Jan 29, 2024
Merged

E2e protocol ricardo #1826

merged 4 commits into from
Jan 29, 2024

Conversation

corrideat
Copy link
Member

No description provided.

Comment on lines 1240 to 1249
return {
get serialize () {
return () => {
if (instance !== self._instance) throw new Error('Chelonia instance has been reset')
const rootState = sbp(self.config.stateSelector)
const height = String(rootState.contracts[contractID].height)
return { ...message.serialize(height), height }
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If .serialize() is called immediately, and we don't need this outer wrapper object, can we just immediately return line 1246?

Copy link

cypress bot commented Jan 29, 2024

Passing run #1839 ↗︎

0 110 8 0 Flakiness 0

Details:

Merge de4b87c into fc4cc7c...
Project: group-income Commit: f011a3070a ℹ️
Status: Passed Duration: 10:54 💡
Started: Jan 29, 2024 7:11 PM Ended: Jan 29, 2024 7:21 PM

Review all test suite changes for PR #1826 ↗︎

sbp('gi.actions/chatroom/user-typing-event', {
contractID: this.currentChatRoomId
}).catch(e => {
console.info('Error emitting user typing event', e)
Copy link
Member

@taoeffect taoeffect Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.error or console.warn

sbp('gi.actions/chatroom/user-stop-typing-event', {
contractID: this.currentChatRoomId
}).catch(e => {
console.info('Error emitting user stopped typing event', e)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.error or console.warn

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!! 👏 😎

@taoeffect taoeffect merged commit 921a611 into master Jan 29, 2024
4 checks passed
@taoeffect taoeffect deleted the e2e-protocol-ricardo branch January 29, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants